package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-26
 */
@Data
@ApiModel("设备日志")
@TableName("devices_log")
public class DevicesLog implements Serializable {

    @TableId(value = "log_id", type = IdType.AUTO)
    @ApiModelProperty("日志记录的唯一标识")
    private Integer logId;

    @ApiModelProperty("设备的唯一标识")
    private Integer deviceId;

    @ApiModelProperty("记录插入的时间")
    private LocalDateTime inserted;

    @ApiModelProperty("设备状态，true 为在线，false 为离线")
    private Boolean status;

    @ApiModelProperty("设备状态的原因说明")
    private String statusReason;

    @ApiModelProperty("系统运行时间")
    private Long uptime;

    @ApiModelProperty("代理运行时间")
    private Integer agentUptime;

    @ApiModelProperty("最后轮询时间")
    private LocalDateTime lastPolled;

    @ApiModelProperty("最后轮询尝试时间")
    private LocalDateTime lastPollAttempted;

    @ApiModelProperty("最后轮询耗时")
    private Object lastPolledTimetaken;

    @ApiModelProperty("最后发现耗时")
    private Object lastDiscoveredTimetaken;

    @ApiModelProperty("最后发现时间")
    private LocalDateTime lastDiscovered;

    @ApiModelProperty("最后 Ping 时间")
    private LocalDateTime lastPing;

    @ApiModelProperty("最后 Ping 耗时")
    private Object lastPingTimetaken;

    @ApiModelProperty("SNMP 启用状态")
    private String snmpyes;
}
